﻿@model DevWeb.Biztalk.DeploymentSettings.WebUI.Models.IntegrationViewModel

@{
    ViewBag.Title = "Edit integration " + Model.Name;
}

<h2>Edit Integration MetaData of @Model.Name</h2>

@using (Html.BeginForm("Edit", "Integration", FormMethod.Post, new  { @class="form-horizontal"}))
{
    
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>Edit Integration</legend>

            <div class="form-group">
                @Html.LabelFor(model => model.Name, new { @class = "col-md-2 control-label" })
                <div class="col-md-20">
                    @Html.TextBoxFor(model => model.Name, new { @class = "form-control col-md-1", @placeholder = "Name of Integration" })

                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </div>



            <div class="form-group">
                @Html.LabelFor(model => model.ProductUpgradeCode, new { @class = "col-md-2 control-label" })
                <div class="col-md-20">
                    @Html.TextBoxFor(model => model.ProductUpgradeCode, new { @class = "form-control", @placeholder = "ProductUpgradeCode of BTDFPro file" })

                    @Html.ValidationMessageFor(model => model.ProductUpgradeCode)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Description, new { @class = "col-md-2 control-label" })
                <div class="col-md-20">
                    @Html.TextBoxFor(model => model.Description, new { @class = "form-control", @placeholder = "Description of Integration", @rows = "5" })

                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </div>



            @Html.HiddenFor(model => model.Id)
            @Html.HiddenFor(model => model.CreateDateTime)
            @Html.HiddenFor(model => model.VersionCount)


            <p>
                <button type="submit" class="btn btn-primary">Save Integration</button>
            </p>
        </fieldset>
    
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}